package com.demo.rabbitmq.amqp.config;

import com.demo.rabbitmq.amqp.entity.Order;
import com.demo.rabbitmq.amqp.entity.Package;

import java.util.Map;

/**
 * @author sc
 * Created on  2018/9/20
 */
public class MessageDelegate {
//    public void handleMessage(byte[] body){
//        System.out.println(new String(body)+"收到消息");
//    }

//    public void handleMessage(String body){
//        System.out.println(body+"收到消息");
//    }
//
//    public void handleMessage1(String body){
//        System.out.println(body+"收到消息1111");
//    }
//    public void handleMessage(Map body){
//        System.out.println(body+"收到消息-json");
//    }

//    public void handleMessage(Order order){
//        System.out.println(order+"收到消息 java-type");
//    }

    public void handleMessage(Order pojos){
        System.out.println(pojos+"多对象");
    }

    public void handleMessage(Package pojos){
        System.out.println(pojos+"多对象");
    }
}
